package com.ruoyi.system.mapper;

import java.util.List;
import com.ruoyi.system.domain.BzCustomer;
import com.ruoyi.system.domain.BzGoods;

/**
 * 客户Mapper接口
 * 
 * @author ruoyi
 * @date 2021-11-23
 */
public interface BzCustomerMapper 
{
    /**
     * 查询客户
     * 
     * @param customerId 客户主键
     * @return 客户
     */
    public BzCustomer selectBzCustomerByCustomerId(Long customerId);

    /**
     * 查询客户列表
     * 
     * @param bzCustomer 客户
     * @return 客户集合
     */
    public List<BzCustomer> selectBzCustomerList(BzCustomer bzCustomer);

    /**
     * 新增客户
     * 
     * @param bzCustomer 客户
     * @return 结果
     */
    public int insertBzCustomer(BzCustomer bzCustomer);

    /**
     * 修改客户
     * 
     * @param bzCustomer 客户
     * @return 结果
     */
    public int updateBzCustomer(BzCustomer bzCustomer);

    /**
     * 删除客户
     * 
     * @param customerId 客户主键
     * @return 结果
     */
    public int deleteBzCustomerByCustomerId(Long customerId);

    /**
     * 批量删除客户
     * 
     * @param customerIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteBzCustomerByCustomerIds(Long[] customerIds);

    /**
     * 批量删除商品
     * 
     * @param customerIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteBzGoodsByCustomerIds(Long[] customerIds);
    
    /**
     * 批量新增商品
     * 
     * @param bzGoodsList 商品列表
     * @return 结果
     */
    public int batchBzGoods(List<BzGoods> bzGoodsList);
    

    /**
     * 通过客户主键删除商品信息
     * 
     * @param customerId 客户ID
     * @return 结果
     */
    public int deleteBzGoodsByCustomerId(Long customerId);
}
